efi: fix booting failure with UEFI on ARM
authorShannon Zhao <shannon.zhao@linaro.org>
Tue, 10 Nov 2015 11:08:29 +0000 (12:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Nov 2015 11:08:29 +0000 (12:08 +0100)
commit4fa72bd15564c59cbd54d4db31a3060293e782ca
tree6faeb4c666482811849ae4665657007b31fabbc0
parent85ad62ecb8c2b31bf13b5e88696ec1d42c7031e4
efi: fix booting failure with UEFI on ARM

Commit 9fd08b4 (efi: split out efi_get_gop()) splits out the
codes getting the pointer to GOP as efi_get_gop(), but it doesn't
initialize the variable handles and gop to NULL like what the original
codes do. This will cause booting failure on ARM while printing below
logs:
Xen 4.7-unstable (c/s Tue Oct 13 14:40:28 2015 +0100 git:7a92036) EFI loader
Synchronous Exception at 0x00000000FECB021C

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
xen/common/efi/boot.c